<!DOCTYPE html>
<html lang="en">

  <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>练习二：定义一个函数，传入宽高，计算矩形区域的面积</title>
  </head>

  <body>

  </body>
  <script>
    /**
     * 练习二：定义一个函数，传入宽高，计算矩形区域的面积
     */
    var square = function (width, height) {
      return width * height;
    }
    var s = square(30, 10);
    console.log(s);
  </script>

</html>